﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ForexTester
{
    public class Market
    {

        private int f_ItemNumber;
        public int ItemNumber
        {
            get
            {
                return f_ItemNumber;
            }
            set
            {
                f_ItemNumber = value;
            }
        }

        private DateTime f_Date;
        public DateTime Date
        {
            get
            {
                return this.f_Date;
            }
            set
            {
                this.f_Date = value;
            }
        }

        private TimeSpan f_Time;
        public TimeSpan Time
        {
            get { return f_Time; }
            set { f_Time = value; }
        }


        private string f_DayOfWeek;
        public string DayOfWeek
        {
            get { return f_DayOfWeek; }
            set { f_DayOfWeek = value; }
        }

        private decimal f_Open;
        public decimal Open
        {
            get { return f_Open; }
            set { f_Open = value; 
                f_High_Open = f_High - f_Open;
                f_Open_Low = f_Open - f_Low;
            }
        }

        private decimal f_High;
        public decimal High
        {
            get { return f_High; }
            set
            {
                f_High = value;
                f_High_Open = f_High - f_Open;
                f_High_Low = f_High - f_Low;
            }
        }

        private decimal f_Low;
        public decimal Low
        {
            get { return f_Low; }
            set { 
                f_Low = value;
                f_Open_Low = f_Open - f_Low;
                f_High_Low = f_High - f_Low;
            }
        }

        private decimal f_Close;
        public decimal Close
        {
            get { return f_Close; }
            set { f_Close = value; }
        }

        private int f_Volume;
        public int Volume
        {
            get { return f_Volume; }
            set { f_Volume = value; }
        } 


        private decimal f_High_Open=0;
        public decimal High_Open
        {
            get
            {
                return f_High_Open;
            }
        }

        private decimal f_Open_Low=0;
        public decimal Open_Low
        {
            get
            {
                return f_Open_Low;
            }
        }
        
        private decimal f_High_Low=0;
        public decimal High_Low
        {
            get
            {
                return f_High_Low;
            }
        }


        private string f_Direction;
        public string Direction
        {
            get { return f_Direction; }
            set { f_Direction = value; }
        }


    }
}
